package com.sure.user.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;

import com.sure.common.anotation.PrimaryKey;

/**
 * 部门实体
 * 
 * @author Sure
 *
 */
public class DepartmentPO  implements Serializable {
	/** 序列化ID*/
	private static final long serialVersionUID = 3104249968779131926L;
	
	public static final String TABLE_NAME = "dept";
	@PrimaryKey
	public static final String PROP_ID = "dept.deptno";
	public static final String PROP_NAME = "dept.dname";
	public static final String PROP_LOCATION = "dept.loc";
	/** ID*/
	private BigDecimal id;
	/** 名称*/
	private String name;
	/** 地点*/
	private String location;


	public BigDecimal getId() {
		return id;
	}
	public void setId(BigDecimal id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DepartmentPO other = (DepartmentPO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}
